luci-app-xfrpc: add subdomain to http&https config
authorDengfeng Liu <[email protected]>
Fri, 14 Oct 2022 08:29:27 +0000 (08:29 +0000)
committerDengfeng Liu <[email protected]>
Fri, 14 Oct 2022 08:29:27 +0000 (08:29 +0000)
Signed-off-by: Dengfeng Liu <[email protected]>
applications/luci-app-xfrpc/htdocs/luci-static/resources/view/xfrpc.js

index 1fe4b34ef977ee2d65f89e420ce7f2d5d77291e1..97154f045fb93f04afede4c87e4804d78d160fbc 100644 (file)
@@ -157,6 +157,12 @@ return view.extend({
                o.optional = true;
                o.modalonly = true;
 
+               o = s.taboption('http', form.Value, 'subdomain', _('Subdomain'));
+               o.depends.apply(o, [{type: 'http'}]);
+               o.depends.apply(o, [{type: 'https'}]);
+               o.optional = true;
+               o.modalonly = true;
+
                return m.render();
        }
 });